package com.wing.storage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wing.storage.dao.ProductInventoryRecordDao;
import com.wing.storage.model.entity.ProductInventoryRecord;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * 产品库存记录-ServiceImpl
 *
 * @author xiayang
 */
@Service
@Slf4j
public class ProductInventoryRecordServiceImpl extends ServiceImpl<ProductInventoryRecordDao, ProductInventoryRecord> implements ProductInventoryRecordService {

    @Override
    public Page<ProductInventoryRecord> pageList(Page page, Map<String, Object> params) {
        List<ProductInventoryRecord> list = baseMapper.pageList(page, params);
        page.setRecords(list);
        return page;
    }

    @Override
    public ProductInventoryRecord get(Long productInventoryRecordId) {
        return baseMapper.get(productInventoryRecordId);
    }
}
